package descriptor;

import java.io.Serializable;

/**
 * CVDescriptor
 * 
 * @author Mamadou TOURE
 * 
 * The CVDescriptor class defines a constructor to obtain a Java object corresponding to an instance of the CV's bean.
 * And it provides all the methods to get or set the CV's details.
 *
 */
public class CVDescriptor implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String fileName;
	private String filelocation;
	private boolean auth;
	private int studentID;
	
	public CVDescriptor(int id,String fileName,String filelocation,boolean auth,int studentID)
	{
		this.id = id;
		this.fileName = fileName;
		this.filelocation = filelocation;
		this.auth = auth;
		this.studentID = studentID;
	}
	
	public int getID() 
	{
		return id;
	}
		
	public void setID(int id)
	{
		this.id = id;
	}
	
	public String getFileName() 
	{
		return fileName;
	}
	
	public void setFileName(String fileName) 
	{
		this.fileName = fileName;
	}
	
	public String getFileLocation() 
	{
		return filelocation;
	}
	
	public void setFileLocation(String filelocation) 
	{
		this.filelocation = filelocation;
	}

	public boolean getPublishAuth() 
	{
		return auth;
	}
	
	public void setPublishAuth(boolean auth) 
	{
		this.auth = auth;
	}
	
	public int getStudentID() 
	{
		return studentID;
	}
	
	public void setStudent(int studentID) 
	{
		this.studentID = studentID;
	}
}
